home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NetNews Offline 2
/
NetNews Offline Volume 2.iso
/
news
/
comp
/
std
/
c
/
386
< prev
next >
Wrap
Text File
|
1996-08-06
|
2KB
|
46 lines
Path: sun001.spd.dsccc.com!spd!jmccarty
From: jmccarty@spd.dsccc.com (Mike McCarty)
Newsgroups: comp.lang.c,comp.std.c
Subject: Re: Integral conversion e.t.c. (was: Re: Hungarian notation)
Date: 14 Feb 1996 19:45:21 GMT
Organization: DSC Communications Corporation, Plano, Texas USA
Message-ID: <4fte4h$b36@sun001.spd.dsccc.com>
References: <30C40F77.53B5@swsbbs.com> <SPENCER.96Jan22113215@zorgon.ERA.COM> <KANZE.96Feb2133347@slsvewt.lts.sel.alcatel.de> <4fqfgg$m3u@atusks02.aut.alcatel.at>
NNTP-Posting-Host: aplo139.spd.dsccc.com
In article <4fqfgg$m3u@atusks02.aut.alcatel.at>,
Marino Ladavac <ladavac@aut.alcatel.at> wrote:
)James Kanze US/ESC 60/3/141 #40763 (kanze@lts.sel.alcatel.de) wrote:
): In article <DM3wEy.FHH@mv.mv.com> ENGR@GSSI.MV.COM (Michael Furman)
): writes:
)
): In fact, according to the standard, undefined behavior is just that:
): undefined. The standard makes no constraints. In real life, of
): course, implementations will behave in a somewhat more restricted
): manner. Thus, for example, I think it is safe to say that on no real
): implementation will "i = i ++" actually reformat your disk (although
): the probablity of it doing what you want is significantly less than
): 1). The standard does not try and determine exactly what might really
): happen in each distinct case of undefined behavior, however.
)
)Well, one cannot really safely say that "i = i++" will or will not
)have catastrophic consequences as the offending line is usually not in
)isolation. For instance, if the "offender" were a part of the, let's
)say, OS filing system code, anything could happen.
)
)/Alby
Let's not overlook malicious compiler writers. Rumor has it that a
certain compiler writer (who shall remain nameless, but who supposedly
has associations with something which might be called FSF) decided that
he did not like the fact that "#pragma" as described by ANSI was allowed
to do whatever the compiler writer liked. So he made all "#pragma"s jump
to a subroutine in the compiler to run the Towers of Hanoi puzzle, and
not output any code. Supposedly, later, that was removed.
Mike
----
char *p="char *p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
I don't speak for DSC. <- They make me say that.